<?php
/* @var $this DuyuruController */
/* @var $model Duyuru */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'duyuru-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'baslik'); ?>
		<?php echo $form->textField($model,'baslik',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'baslik'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'icerik'); ?>
		<?php echo $form->textArea($model,'icerik',array('rows'=>20,'cols'=>70,'class'=>'ckeditor','id'=>'icerik')); ?>
		<?php echo $form->error($model,'icerik'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'yayin_zamani'); ?>
		<?php echo $form->textField($model,'yayin_zamani'); ?>
		<?php echo $form->error($model,'yayin_zamani'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dil_id'); ?>
		<?php echo $form->dropDownList($model,'dil_id',CHtml::listData(Dil::model()->findAll(),'id','ad')); ?>
		<?php echo $form->error($model,'dil_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->